package com.xcity.robot.net.websocket;

import com.xcity.robot.net.Session;
import com.xcity.robot.net.packet.HandshakePacket;
import com.xcity.robot.net.util.Settings;

public interface HandshakeListener {
	
	// websocket握手
	HandshakeListener WEBSOCKET_HANDSHAKE = new HandshakeListener() {
		@Override
		public void handshakeOk(Session session) {
			session.write(HandshakePacket.DEFAULT);
		}
	};
	
	// pomelo握手
	HandshakeListener POMELO_HANDSHAKE = Settings.pomeloHandshakeListener;

	void handshakeOk(Session session);
	
}
